package com.sgcc.pda.hzaidl.entity;

import com.sgcc.pda.hzaidl.error.HZErrorCode;

/**
 * Created by cj on 2019/12/4.
 */
public class CommonErrorBean {

    private int code;
    private String msg;

    public CommonErrorBean() {
    }

    public CommonErrorBean(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public CommonErrorBean(HZErrorCode hzErrorCode) {
        this.code = hzErrorCode.getCode();
        this.msg = hzErrorCode.getErrMessage();
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
